3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next

Renderer Cull Method

This section describes TQ3XRendererIsBoundingBoxVisibleMethod, a renderer support method used to cull group and geometric objects.

TQ3XRendererIsBoundingBoxVisibleMethod

#define kQ3XMethodTypeRendererIsBoundingBoxVisible
                     Q3_METHOD_TYPE('r','d','b','x')
typedef TQ3Boolean (*TQ3XRendererIsBoundingBoxVisibleMethod)(
                     TQ3ViewObject          view,
                     void                   *rendererPrivate,
                     const TQ3BoundingBox    *bBox);
view
The current view being rendered to.
rendererPrivate
A pointer to structure of size instanceSize , passed into Q3ObjectHierarchy_RegisterClass , and initialized in your kQ3MethodTypeObjectNew method.
bBox
A bounding box.

DESCRIPTION

The kQ3XMethodTypeRendererIsBoundingBoxVisible method type returns a function pointer of type TQ3XRendererIsBoundingBoxVisibleMethod.

This renderer support method is called to cull complex groups and geometries by passing their bounding box in local space. It should transform the local-space bounding box coordinates to frustum space and return a value of type TQ3Boolean indicating whether or not the box appears within the viewing frustum. If no method is supplied, the default behavior is to return kQ3True .


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next